<!DOCTYPE html>
<html>
<head>
<title>{$site_name}</title>
<meta name="keywords" content="{$site_seo_keywords}" />
<meta name="description" content="{$site_seo_description}">
<meta name="author" content="ThinkCMF">
<tc_include file="Public:head" />
<style>
.control-label{
	font-weight: bold;
	float: left;
	width: 70px;
}
</style>
</head>
<body class="body-white" id="top">
	<tc_include file="Public:nav" />

		<div class="container tc-main">
			<br>
                <div class="row">
                    <div class="span3">
	                    <tc_include file="Public:usernav"/>
                    </div>
                    <div class="span9">
                           <div class="tabs">
                               <ul class="nav nav-tabs">
								   <li class="active"><a href="{:U("Certificate/User/index")}" data-toggle="tab"><i class="fa fa-list-alt"></i> 证书中心</a></li>
								   <li class=><a href="{:U("Certificate/User/upload")}" data-toggle="tab"><i class="fa fa-list-alt"></i> 在线办理</a></li>
                               </ul>
                               <div class="tab-content">
								   <!-- =============== -->

	<literal><style>
	li{list-style:none;}
	.col-right {
	float: right;
	width: 210px;
	overflow: hidden;
	margin-left: 6px;
	border: 1px solid #c2d1d8;
}
	</style></literal>
	<div id="post">
		<div class="row">
			<img class="span2 thumbnail" src="{$uploadname}">
			<form class="span3 offset-span4" action="{:U('Certificate/Index/upload')}" enctype="multipart/form-data" method="post" >
				<input type="file" name="photo" />
				<input type="submit" value="提交" >
			</form>
		</div>
		<br>
				 <li>姓　　名　 <input type="text" value="" class="name"></li>
				 
				 <li>所学专业　 <input type="text" value="临床医学" class="major"></li>
				 <li>专业名称　 <input type="text" value="美容整形" class="major2"></li>
				 <li>毕业院校 　<input type="text" value="中国医科大学" class="graduate"></li>
				 <li>性　　别　 <input type="text" value="" class="sex"></li>
				 <li>出生年月　 <input type="text" value="/ / /" class="born"></li>
				 <li>户　　籍　 <input type="text" value="" class="huji"></li>	 
				 <li>民　　族　 <input type="text" value="汉" class="family"></li>
				 <li>政治面貌　 <input type="text" value="群众" class="plitic"></li>
				 <li>资格名称 　<input type="text" value="国际注册整形主任医师" class="status"></li>
				 <li>国　　籍　 <input type="text" value="中国" class="country"></li>
				 <li>证件编码　 <input type="text" value="" class="paperNo"></li>
				 <li>证书编码　 <input type="text" value="" class="bookNo"></li>
				 <li>入会时间　 <input type="text" value=" 年 月 日" class="join_date"></li>
            <button class="btn btn-primary" id="btnAdd">增加</button>
	</div>
								   <!-- =============== end -->
                               </div>							
                           </div>
                    </div>
                </div>

		<tc_include file="Public:footer" />

		</div>
	<!-- /container -->

	<tc_include file="Public:scripts" />
	
<script>
$('#btnAdd').click(function(){
	var inputClass='array(';
	$("#post input").each(function(){
		inputClass+='"'+$(this).attr("class")+'"=>'+'"'+$(this).attr("value")+'",';
	});
	inputClass=inputClass.replace(/,$/ig,"")+');'; 
	$.ajax({
		type:"post",
		url:"__ROOT__/index.php?g=Certificate&m=Indexadmin&a=addPost",
		data:{input:inputClass},
		dataType:"html",
		success:function(data){
			alert(data);
		}
	});
});
</script>
</body>
</html>
